<layout name="layout" />

<div class="main-div">
    <form name="main_form" method="POST" action="__SELF__" enctype="multipart/form-data" >
    	<input type="hidden" name="id" value="<?php echo $data['id']; ?>" />
		<input type="hidden" name="old_pic" value="<?php echo $data['pic']; ?>" />
		<input type="hidden" name="old_big_pic" value="<?php echo $data['big_pic']; ?>" />
		<input type="hidden" name="old_mid_pic" value="<?php echo $data['mid_pic']; ?>" />
		<input type="hidden" name="old_sm_pic" value="<?php echo $data['sm_pic']; ?>" />
        <table cellspacing="1" cellpadding="3" width="100%">
            <tr>
                <td class="label">公司名：</td>
                <td>
                    <input  type="text" name="company_name" value="<?php echo $data['company_name']; ?>" />
                </td>
            </tr>
            <tr>
                <td class="label">公司图片：</td>
                <td>
                	<input type="file" name="pic" /><br /> 
                	<?php showImage($data['pic'], 100); ?>                </td>
            </tr>
            <tr>
                <td class="label">管理员：</td>
                <td>
                    <input  type="text" name="admin_id" value="<?php echo $data['admin_id']; ?>" />
                </td>
            </tr>
            <tr>
                <td class="label">客户资料：</td>
                <td>
                	<textarea id="datum" name="datum"><?php echo $data['datum']; ?></textarea>
                </td>
            </tr>
            <tr>
                <td class="label">法人代表：</td>
                <td>
                    <input  type="text" name="company_principal" value="<?php echo $data['company_principal']; ?>" />
                </td>
            </tr>
            <tr>
                <td class="label">地址：</td>
                <td>
                    <input  type="text" name="addr" value="<?php echo $data['addr']; ?>" />
                </td>
            </tr>
            <tr>
                <td class="label">联系电话：</td>
                <td>
                    <input  type="text" name="tel" value="<?php echo $data['tel']; ?>" />
                </td>
            </tr>
            <tr>
                <td class="label">审核状态：</td>
                <td>
                    <input  type="text" name="status" value="<?php echo $data['status']; ?>" />
                </td>
            </tr>
            <tr>
                <td class="label">开始时间：</td>
                <td>
                    <input id="start_time" type="text" name="start_time" value="<?php echo $data['start_time']; ?>" />
                </td>
            </tr>
            <tr>
                <td class="label">结束时间：</td>
                <td>
                    <input id="end_time" type="text" name="end_time" value="<?php echo $data['end_time']; ?>" />
                </td>
            </tr>
            <tr>
                <td colspan="99" align="center">
                    <input type="submit" class="button" value=" 确定 " />
                    <input type="reset" class="button" value=" 重置 " />
                </td>
            </tr>
        </table>
    </form>
</div>

<link href="__PUBLIC__/umeditor1_2_2-utf8-php/themes/default/css/umeditor.css" type="text/css" rel="stylesheet">
<script type="text/javascript" charset="utf-8" src="__PUBLIC__/umeditor1_2_2-utf8-php/umeditor.config.js"></script>
<script type="text/javascript" charset="utf-8" src="__PUBLIC__/umeditor1_2_2-utf8-php/umeditor.min.js"></script>
<script type="text/javascript" src="__PUBLIC__/umeditor1_2_2-utf8-php/lang/zh-cn/zh-cn.js"></script>

<script>
$("#start_time").datepicker(); 
$("#end_time").datepicker(); 
var um = UM.getEditor('datum', {
	initialFrameWidth:"100%"
});
</script>